﻿<UserControl 
    x:Class="WGM_Silverlight.Controls.ContactInfo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    
    >
    <UserControl.Resources>
        <Storyboard x:Name="_animEnter">
            <DoubleAnimation To="1" FillBehavior="HoldEnd" Storyboard.TargetName="_brushLight" Storyboard.TargetProperty="Opacity"
                                     Duration="0:0:0.1"/>
        </Storyboard>
        <Storyboard x:Name="_animLeave">
            <DoubleAnimation To="0" FillBehavior="HoldEnd" Storyboard.TargetName="_brushLight" Storyboard.TargetProperty="Opacity"
                                     Duration="0:0:0.4"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="Transparent" MouseEnter="LayoutRoot_MouseEnter" MouseLeave="LayoutRoot_MouseLeave" Cursor="Hand">
        <Border x:Name="_background"  IsHitTestVisible="False" CornerRadius="10,0,0,10">
            <Border.Background>
                <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">                    
                    <GradientStop Offset="0" Color="Black" x:Name="_highlightColour"/>
                    <GradientStop Offset="1" Color="Black" x:Name="_backgroundColour"/>
                </LinearGradientBrush>
            </Border.Background>
            <Border Background="Black" Margin="2" IsHitTestVisible="False" CornerRadius="10,0,0,10">
                <Border  IsHitTestVisible="False" CornerRadius="10,0,0,10" >
                    <Border.Background>
                        <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5" x:Name="_brushLight" Opacity="0">
                            <GradientStop Offset="0.5" Color="Black"/>
                            <GradientStop Offset="1" Color="Black" x:Name="transitionColor"/>
                            <GradientStop Offset="0.95" Color="Black" x:Name="transitionSubColor"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <StackPanel Margin="2">
                        <TextBlock x:Name="_contactDisplayName" Text="Contact Name"  FontSize="13" FontWeight="Bold"  />
                        <TextBlock x:Name="_contactDisplayStatus" Text="Contact Status" FontStyle="Italic" FontSize="10" />
                    </StackPanel>
                </Border>
            </Border>
        </Border>

    </Grid>
</UserControl>
